package com.hibikiluler.javalearning.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 *  菜单
 *  	id bigint(20) not null primary key auto_increment comment '主键',
 * 	path varchar(100) comment '菜单路径',
 * 	icon varchar(50) comment '菜单图标',
 * 	title varchar(50) comment '菜单名称',
 * 	component varchar(50) comment '菜单组件',
 * 	parent_id bigint(20) comment '父级菜单'
 */
@Data
public class SysMenus {
    @ApiModelProperty(value = "主键")
    private Long id; //主键
    @ApiModelProperty(value = "前端路由")
    private String path;// 前端路由
    @ApiModelProperty(value = "菜单图标")
    private String icon; //菜单图标
    @ApiModelProperty(value = "菜单名称")
    private String title; //菜单名称
    @ApiModelProperty(value = "前端组件")
    private String component;//前端组件
    @ApiModelProperty(value = "子菜单")
    private List<SysMenus> children; //子菜单
    @ApiModelProperty(value = "显示状态0：显示 ，1不显示：")
    private boolean status;
    @ApiModelProperty(value = "父级菜单")
    private Long parentId;
}

